﻿using KINLO.UI.Main.Services;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace KINLO.UI.Main.View
{
    /// <summary>
    /// PassConfirmView.xaml 的交互逻辑
    /// </summary>
    public partial class PassConfirmView : Window
    {
        public PassConfirmView()
        {
            InitializeComponent();
            GlobalValues.Init();
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = false;
            return;
        }

        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            if (txtPass.Password == GlobalValues.FrontWeightPass)
            {
                this.DialogResult = true;
                return;
            }
            else
            {
                MessageBox.Show("密码错误", "错误", MessageBoxButton.OK, MessageBoxImage.Error);
            }
        }
    }
}
